C++ Snippets
C++11 Sublime Text Snippets
Details
Installs
- Total 77K
- Win 44K
- Mac 10K
- Linux 23K
Aug 5 | Aug 4 | Aug 3 | Aug 2 | Aug 1 | Jul 31 | Jul 30 | Jul 29 | Jul 28 | Jul 27 | Jul 26 | Jul 25 | Jul 24 | Jul 23 | Jul 22 | Jul 21 | Jul 20 | Jul 19 | Jul 18 | Jul 17 | Jul 16 | Jul 15 | Jul 14 | Jul 13 | Jul 12 | Jul 11 | Jul 10 | Jul 9 | Jul 8 | Jul 7 | Jul 6 | Jul 5 | Jul 4 | Jul 3 | Jul 2 | Jul 1 | Jun 30 | Jun 29 | Jun 28 | Jun 27 | Jun 26 | Jun 25 | Jun 24 | Jun 23 | Jun 22 | Jun 21 | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Windows | 2 | 3 | 0 | 4 | 1 | 2 | 2 | 4 | 2 | 1 | 6 | 3 | 6 | 7 | 3 | 2 | 5 | 1 | 5 | 5 | 5 | 2 | 8 | 3 | 2 | 4 | 6 | 2 | 3 | 3 | 1 | 5 | 5 | 2 | 2 | 1 | 3 | 4 | 3 | 2 | 4 | 3 | 4 | 4 | 0 | 2 |
Mac | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 2 | 2 | 0 | 0 | 0 | 0 | 0 | 2 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 3 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 | 2 | 1 | 0 |
Linux | 0 | 0 | 1 | 2 | 1 | 4 | 3 | 3 | 0 | 1 | 2 | 6 | 0 | 3 | 4 | 2 | 1 | 0 | 2 | 2 | 1 | 3 | 4 | 2 | 0 | 2 | 2 | 4 | 1 | 1 | 2 | 0 | 0 | 1 | 2 | 0 | 1 | 2 | 0 | 3 | 0 | 1 | 1 | 1 | 2 | 2 |
Readme
- Source
- raw.githubusercontent.com
C++ Snippets for Sublime Text
This package adds some useful snippets for Sublime Text for C++11. It matches the following style:
if(/* condition */) {
/* code */
}
Installation
Package Control (recommended)
The easiest way to install the C++ Snippets is by using Package Control. Installing it is documented here.
- Open Package Control (or hit Ctrl+Shift+P or Cmd+Shift+P)
- Type install and hit enter
- Type C++ Snippets and hit enter again
Cloning the Repository
You can manually install the package by using Git.
- Navigate to Sublime’s Packages directory
- Run
git clone https://github.com/Rapptz/cpp-sublime-snippet.git
To find out where the Packages directory is, you can go to Preferences and Browse packages…. This will open the directory in your file explorer.
Downloading the Archive
If you don’t have Package Control or Git, you can also download the package. However you really should be using Package Control, because the process is simpler.
- Open https://github.com/Rapptz/cpp-sublime-snippet in your browser
- On the right hand side there is a Download ZIP button – click it
- Go to Preferences and Browse packages… which opens the Packages directory
- Extract the archive inside the Packages directory
Documentation
Documentation can be found in the reference.md file.
License
The overall collection of snippets is licensed under the MIT License but the individual snippets themselves are licensed under CC0.